import { createStore, createLogger } from 'vuex'
import getters from './getters'
import actions from './actions'
import mutations from './mutations'

const state = {
  statusSiderLeft: true, //状态：左侧面板的显示隐藏
  menus:[],//菜单集合
  TabCrumb: [],
  showDialog: true,
  editableTabsValue:sessionStorage.getItem('eventcenter_editableTabsValue')||'processinstance',
  editableTabs:JSON.parse(sessionStorage.getItem('eventcenter_editableTabs')) || [{title: '流程实例',name: 'processinstance'}],
  SideMenuIsCollapse: false,// 侧边菜单是否折叠
  SideMenuIsHidden: false,// 侧边菜单是否隐藏
}

export default createStore({
  state,
  getters,
  actions,
  mutations,
})